import request from '@/utils/request'
// 下单
export function mergeOutList(params) {
  return request({
    url: 'order/deliveryMerge/mergeOutList',
    params,
  })
}
// 柜子型号
export function PackageType(data) {
  return request({
    url: 'system/country/info/queryCainetTypeList',
    method: 'post',
    data,
  })
}

export function delPackage(id) {
  return request({
    url: `order/deliveryMerge/${ id }`,
    method: 'DELETE',
  })
}
// 国内查验

export function domesticInspection(data) {
  return request({
    url: 'order/deliveryMerge/domesticInspection',
    method: 'post',
    data,
  })
}
// 国内已放行
export function domesticDomestically(data) {
  return request({
    url: 'order/deliveryMerge/domesticDomestically',
    method: 'post',
    data,
  })
}
// 国外查验
export function foreignInspection(data) {
  return request({
    url: 'order/deliveryMerge/foreignInspection',
    method: 'post',
    data,
  })
}
//  国内报关
export function domesticDeclaration(data) {
  return request({
    url: 'order/deliveryMerge/domesticDeclaration',
    method: 'post',
    data,
  })
}
// 已到港
export function saveOrderArrivedTrack(data) {
  return request({
    url: 'order/deliveryMerge/goodsArrived',
    method: 'post',
    data,
  })
}
// 国外清关
export function customsClearance(data) {
  return request({
    url: 'order/deliveryMerge/customsClearance',
    method: 'post',
    data,
  })
}
// 签出

export function ladingOut(data) {
  return request({
    url: 'order/deliveryMerge/ladingOut',
    method: 'post',
    data,
  })
}

export function queryMergeLoadingOrderInfo(params) {
  return request({
    url: 'order/deliveryMerge/queryMergeLoadingOrderInfo',
    params,
   
  })
}
export function abroadClearanceReleased(data) {
  return request({
    url: 'order/deliveryMerge/abroadClearanceReleased',
    method: 'post',
    data,
  })
}
// 已提柜

export function carryCabinet(data) {
  return request({
    url: 'order/deliveryMerge/carryCabinet',
    method: 'post',
    data,
  })
}
export function submitUps(data) {
  return request({
    url: 'order/deliveryMerge/submitUps',
    method: 'post',
    data,
  })
}
export function submitOverseas(data) {
  return request({
    url: 'order/deliveryMerge/submitOverseas',
    method: 'post',
    data,
  })
}
// 查看详情

export function mergeOrderInfo(params, data) {
  return request({
    url: 'order/deliveryMerge/mergeOrderInfo/5',
    method: 'post',
    params,
    data,
  })
}